package edu.ynu.se.xiecheng.achitectureclass.camera.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import edu.ynu.se.xiecheng.achitectureclass.device.entity.Device;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Table(name = "camera_image")
@Getter
@Setter
public class CameraImage extends LogicEntity {
    
    @ManyToOne
    @JoinColumn(name = "device_id")
    private Device device;
    
    @Column(length = 1000)
    private String imageUrl;
    
    @Column(name = "capture_time")
    private LocalDateTime captureTime;
} 